-
Home
-
Smush Image Optimization – Optimize Images | Compress & Lazy Load Images | Convert WebP & AVIF | Image CDN
-
3.22.1 (latest)
-
Code
-
Classes
- Avif_Optimization
| Total Complexity |
57 |
| Dependencies |
8 |
| Dependents |
2 |
| Total lines |
313 |
| Lines of code |
199 |
| Logical lines of code |
101 |
| Comment lines |
42 |
| Methods |
29 |
| Properties |
10 |
Methods 29
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| should_reoptimize() |
S |
58 |
6 |
16 |
| should_optimize() |
S |
60 |
5 |
15 |
| size_stats_from_response() |
S |
62 |
4 |
11 |
| optimize() |
S |
55 |
3 |
20 |
| is_file_converted() |
S |
66 |
4 |
8 |
| make_meta() |
S |
62 |
3 |
11 |
| has_converted_file() |
S |
64 |
3 |
10 |
| save() |
S |
67 |
2 |
8 |
| get_stats() |
S |
72 |
2 |
6 |
| get_size_stats() |
S |
71 |
2 |
6 |
| get_meta() |
S |
72 |
2 |
6 |
| get_sizes_meta() |
S |
71 |
2 |
6 |
| should_optimize_size() |
S |
67 |
2 |
9 |
| reset() |
S |
74 |
2 |
5 |
| __construct() |
S |
67 |
1 |
8 |
| get_key() |
S |
81 |
1 |
3 |
| get_name() |
S |
79 |
1 |
3 |
| is_optimized() |
S |
80 |
1 |
3 |
| size_meta_exists() |
S |
79 |
1 |
3 |
| prepare_stats() |
S |
68 |
1 |
7 |
| prepare_size_stats() |
S |
73 |
1 |
5 |
| fetch_meta() |
S |
75 |
1 |
4 |
| get_size_meta() |
S |
72 |
1 |
5 |
| delete_data() |
S |
76 |
1 |
4 |
| get_errors() |
S |
81 |
1 |
3 |
| get_optimized_sizes_count() |
S |
80 |
1 |
3 |
| update_from_response() |
S |
72 |
1 |
5 |
| get_sizes_to_convert() |
S |
81 |
1 |
3 |
| get_optimized_file_url() |
S |
80 |
1 |
3 |